package com.zcy.auth.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


/**
 * <p>
 * 权限
 * </p>
 *
 * @author lucker
 * @since 2023-12-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value="权限", description="Permission")
@ToString
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限编号")
    private Long id;
    
    @ApiModelProperty(value = "权限名称")
    private String name;
    
    @ApiModelProperty(value = "权限URL")
    private String url;
    
    @ApiModelProperty(value = "权限描述")
    private String desc;
    
    @ApiModelProperty(value = "权限唯一标识")
    private String sn;
    
    @ApiModelProperty(value = "父级权限")
    private Permission parent;

    @ApiModelProperty(value = "子权限")
    private List<Permission> children;
    


}
